const AccessToken = 'accessToken';
const RefreshToken = 'refreshToken';

export const getAccessToken = (): string | null => {
  return localStorage.getItem(AccessToken);
};

export const setAccessToken = (v: string): void => {
  localStorage.setItem(AccessToken, v);
};

export const getRefreshToken = (): string | null => {
  return localStorage.getItem(RefreshToken);
};

export const setRefreshToken = (v: string): void => {
  localStorage.setItem(RefreshToken, v);
};

export const clearToken = (): void => {
  localStorage.removeItem(AccessToken);
  // localStorage.removeItem(RefreshToken);
};
